package com.src.isec.data.network.api.service;


import com.src.isec.domain.entity.UserEntity;

import java.util.List;

import io.reactivex.Flowable;
import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Query;


/**
 * @author liujiancheng
 * @name IsecLive
 * @class name：com.src.isec.data.network.api.service
 * @class 业务API
 * @time 2018/3/21 10:53
 * @change
 * @chang time
 * @class describe
 */

public interface UserService {

    String HEADER_API_VERSION = "Accept: application/vnd.github.v3+json";

    @Headers({HEADER_API_VERSION})
    @GET("/users")
    Observable<List<UserEntity>> getUsers(@Query("since") int lastIdQueried, @Query("per_page") int
            perPage);
}
